﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Core.Interfaces.IPresenters;

namespace Core.Views
{
    public partial class OwnedBuildingView : Form, IOwnedBuildingView 
    {
        public OwnedBuildingView()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            SaveOwnedBuilding(this, null);
        }

        #region Implementation of IOwnedBuildingView

        public BindingSource OwnedBuilding
        {
            get { return iOwnedBuildingBindingSource; }
            set { iOwnedBuildingBindingSource = value; }
        }

        public BindingSource Customer
        {
            get { return iCustomerBindingSource; }
            set { iCustomerBindingSource = value; }
        }

        public event EventHandler SaveOwnedBuilding;

        #endregion

        private void iCustomerBindingSource_CurrentChanged(object sender, EventArgs e)
        {

        }
    }
}
